// Club.Class 教务
export default [
  { // 教室管理
    path: 'classroom',
    name: 'Classroom',
    meta: {
      title: 'classroom',
      code: 'Club.Class'
    },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/classroom/index.vue')
  },
  { // 课表管理
    path: 'timetable',
    meta: {
      title: 'timetable',
      code: 'Club.Class'
    },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/timetable/routerView.vue'),
    children: [
      { // 课表
        path: '',
        name: 'Timetable',
        component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/timetable/index.vue'),
        meta: {
          title: 'timetable',
          code: 'Club.Class',
          breadcrumb: false
        }
      },
      { // 排课
        path: 'create',
        name: 'CreateClass',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/timetable/create/index.vue'),
        meta: {
          title: 'createClass',
          code: 'Club.Class',
          parentRouteName: 'Timetable'
        }
      },
      { // 班课表
        path: 'class/:classId',
        name: 'ClassTimetable',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/timetable/timetableType/class.vue'),
        meta: {
          title: 'classTimetable',
          code: 'Club.Class',
          parentRouteName: 'Timetable'
        }
      }
    ]
  },
  { // 预约管理
    path: 'appointmentManagement',
    meta: {
      title: 'appointmentManagement',
      code: 'Club.Class'
    },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/appointment/index.vue'),
    children: [
      { // 预约列表
        path: '',
        name: 'AppointmentManagement',
        meta: {
          title: 'appointmentManagement',
          code: 'Club.Class',
          breadcrumb: false
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/appointment/components/appointmentList.vue')
      },
      { // 选择预约班级（课表）
        path: 'selectAppointmentClass',
        name: 'SelectAppointmentClass',
        hidden: true,
        meta: {
          title: 'selectAppointmentClass',
          parentRouteName: 'AppointmentManagement',
          code: 'Club.Class'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/timetable/index.vue')
      }
    ]
  },
  { // 课程管理
    path: 'courseManagement',
    meta: {
      title: 'courseManagement',
      code: 'Club.Class'
    },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/course/index.vue'),
    children: [
      { // 课程列表
        path: '',
        name: 'CourseManagement',
        component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/course/components/courseList.vue'),
        meta: {
          title: 'courseManagement',
          code: 'Club.Class',
          breadcrumb: false
        }
      }
      // { // 新增课程
      //   path: 'newCourse',
      //   name: 'NewCourse',
      //   hidden: true,
      //   component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/course/components/newCourse.vue'),
      //   meta: {
      //     title: 'newCourse',
      //     code: 'Club.Class',
      //     parentRouteName: 'CourseManagement'
      //   }
      // },
      // { // 编辑课程
      //   path: 'editCourse/:id',
      //   name: 'EditCourse',
      //   hidden: true,
      //   component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/course/components/newCourse.vue'),
      //   meta: {
      //     title: 'editCourse',
      //     code: 'Club.Class',
      //     parentRouteName: 'CourseManagement'
      //   }
      // }
    ]
  },
  { // 班级管理
    path: 'grade',
    redirect: { name: 'GradeType' },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/grade/index.vue'),
    meta: {
      title: 'grade',
      code: 'Club.Class'
    },
    children: [
      {
        path: 'gradeType',
        name: 'GradeType',
        meta: {
          code: 'Club.Class'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/grade/gradeType.vue')
      },
      {
        path: 'editGrade',
        name: 'EditGrade',
        meta: {
          title: 'editGrade',
          code: 'Club.Class',
          parentRouteName: 'GradeType'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/grade/editGrade.vue')
      },
      {
        path: 'arrangingType',
        name: 'ArrangingType',
        meta: {
          title: 'arrangingType',
          code: 'Club.Class',
          parentRouteName: 'GradeType'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/grade/arranging/signindex.vue'),
        children: [
          {
            path: '',
            name: 'ArrangingTypeList',
            meta: {
              code: 'Club.Class',
              parentRouteName: 'GradeType'
            },
            component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/grade/arranging/arrangingType.vue')
          },
          {
            path: 'signinType',
            name: 'SigninType',
            meta: {
              title: 'signinType',
              code: 'Club.Class',
              parentRouteName: 'GradeType'
            },
            component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/grade/arranging/sign/signType.vue')
          }
        ]
      }
    ]
  },
  { // 考勤管理
    path: 'attendance',
    name: 'Attendance',
    meta: {
      title: 'attendance',
      code: 'Club.Class'
    },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/attendance/index.vue'),
    children: [
      {
        path: '',
        name: 'AttendanceList',
        meta: {
          code: 'Club.Class'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/attendance/attendanceList.vue')
      },
      {
        path: 'attendancedet',
        name: 'Attendancedet',
        meta: {
          title: 'attendancedet',
          code: 'Club.Class',
          parentRouteName: 'AttendanceList'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/attendance/attendancedet.vue')
      }
    ]
  },
  { // 教练管理
    path: 'coach',
    name: 'Coach',
    meta: {
      title: 'coach',
      code: 'Club.Class'
    },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/coach/index.vue'),
    children: [
      {
        path: '',
        name: 'CoachList',
        meta: {
          code: 'Club.Class'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/coach/coachList.vue')
      },
      {
        path: 'coachType',
        name: 'CoachType',
        meta: {
          title: 'coachType',
          code: 'Club.Class',
          parentRouteName: 'CoachList'
        },
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/coach/coachDet/coachType')
      }
    ]
  },
  {
    path: 'signIn',
    name: 'SignIn',
    meta: {
      title: 'signInManage',
      code: 'Club.Class'
    },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/sign/signIn.vue')
  },
  {
    path: 'signOut',
    name: 'SignOut',
    meta: {
      title: 'signOutManage',
      code: 'Club.Class'
    },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/sign/signOut.vue')
  }
];
